package com.be.beadmin.product.dto.output;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.NumberFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentFontStyle;
import com.alibaba.excel.annotation.write.style.HeadFontStyle;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
@HeadFontStyle(fontName = "Microsoft YaHei",fontHeightInPoints = 12)
@ContentFontStyle(fontName = "Microsoft YaHei",fontHeightInPoints = 12)
public class ErrorReportForExportEx {

    @ExcelProperty("项目名称")
    @ColumnWidth(20)
    private String projectName;

    @ExcelProperty("工单号")
    @ColumnWidth(20)
    private String wo;

    @ExcelProperty("工时")
    @NumberFormat("0.00")
    private Float workHour;

    @ExcelProperty("异常类型")
    private String errorType;

    @ExcelProperty("异常优先级")
    private String priority;

    @ExcelProperty("异常描述")
    @ColumnWidth(20)
    private String errorDes;

    @ExcelProperty("要求处理时间")
    @ColumnWidth(20)
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date deadLine;

    @ExcelProperty("异常申报人")
    private String operator;

    @ExcelProperty("异常申报时间")
    @ColumnWidth(20)
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createTime;

    @ExcelProperty("异常处理人")
    private String handlingMan;

    @ExcelProperty("异常处理状态")
    private String handleStatusTransfer;

    @ExcelProperty("异常处理时间")
    @ColumnWidth(20)
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date handleTime;

    @ExcelProperty("异常处理描述")
    @ColumnWidth(20)
    private String handleDes;
}
